
#!/bin/sh

echo '
######## ##     ## #### ######## ##     ## ######## ########    ###    ##     ##
     ##  ##     ##  ##     ##    ##     ##    ##    ##         ## ##   ###   ###
    ##   ##     ##  ##     ##    ##     ##    ##    ##        ##   ##  #### ####
   ##    #########  ##     ##    ##     ##    ##    ######   ##     ## ## ### ##
  ##     ##     ##  ##     ##    ##     ##    ##    ##       ######### ##     ##
 ##      ##     ##  ##     ##    ##     ##    ##    ##       ##     ## ##     ##
######## ##     ## ####    ##     #######     ##    ######## ##     ## ##     ##
'
rm -rf ./dist/

git stash
echo '```````````````````````````````切换分支`````````````````````````````````````````'
git checkout master
echo '```````````````````````````````编译文件中```````````````````````````````````````'
npm run build
echo '```````````````````````````````上传文件中```````````````````````````````````````'
ssh fengtianhe@120.27.127.94 "rm -rf /home/web/zhituteam/template"

scp -r ./dist fengtianhe@120.27.127.94:/home/web/zhituteam/template

git stash pop

